package com.yxw.guice.service.impl;

import com.google.inject.Inject;
import com.yxw.guice.service.Application;
import com.yxw.guice.service.LogService;
import com.yxw.guice.service.UserService;

public class MyApp implements Application{
    private UserService userService;
    private LogService logService;

    @Inject
    public MyApp(UserService userService,LogService logService){
        this.logService = logService;
        this.userService = userService;
    }

    @Override
    public void work() {
        userService.process();
        logService.log("程序正常运行");
    }
}
